package com.ldzy.webase.utils;

public enum ResponseCode {
    SUCCESS(200, "操作成功"),
    SUCCESS_LOGIN(200, "登陆成功"),
    SUCCESS_REGISTER(200, "注册成功"),
    SUCCESS_EDIT(200, "修改成功"),


    ERROR(500, "操作失败");
    private int code;
    private String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
